invariants for permutation groups