Update Swap Nodes in Pairs.cpp