Create swapnode.cpp