Create Swap Nodes in Pairs

Two nodes to record the position of current nodes, when there is no more than two nodes left, set cur = null to jump out of loop.