code for search in rotated array