add binarySearch solution for search rotated array