Function pairwiseAsync