Create swapNodePairs.cpp