Complete swapPairs