Search in rotated array II