completed array-pair-sum