Search rotated sorted array.