Adding solution #2 of search in rotated sorted array