rotated Sorted Array find and find min