solved findMinimumRotate2