solved find minimum in rotated sorted array