Update Swap Nodes in Pairs.java