DLL: template and swap every two nodes