group_walk              Implements group-walk algorithm
