Simplified version for Search in Rotated Array 1&2