search in rotated array II