find an element in a sorted rotated array