Added work on reversing groups cpp