Swap Nodes in Pairs.java