finding pairs of ints that sum to n