Add Swap nodes in pairs problem