Solve swap nodes in pairs
Solve reverse nodes in k-group