add solution for binary search in a rotated array