seach in rotated array