Search in Rotated Sorted Array II in Java