Create search in rotated array.java