SwapNodeInPairs