String rotation test
Binary search implementation