fixed bug in rotated binary search algorithm - no duplicates