search in rotated sorted array, find cut position