Improved testcases for binary search in rotated array
Code cleanup