passed: SwapNodesinPairs