TwoSum using binary search