find pair of numbers in array that add to given sum