add find min in rotated array 2