add find min in rotated array