2Sum, two different methods.