fixed bug in rotated binary search algorithm - duplicates