Create SwapNodesinPairs.cpp