add solution for reverse nodes in k-groups