Fixed error in Find2Extrema