Peak Binary Search
Sort by frequency