Create Swap Nodes in Pairs.java