Refactoring hasTwoNumbersThatSum method.
Adding tests.