Find all pair of number in array which sum to a specified value[Method 2]