Create search in rotated sorted array I and II