Implement dictionary binary search