Implement finding min of rotated sorted array