Find max and min points