added find min in rotated array solution