find two element sum to a certain sum in sorted array