third approach to 3sumtoX and modified binary search_3