find pair of values that add up to k