find min number in rotated array