find the minimum in rotated sorted array by comparing the previous num