find_min_rotated