Implement binary search variants | Uber