Update SwapNodePairs.java