find element in rotated array