2Sum using binary search and vectors