add search in rotated array