pub fn close_perm_group(gens: &[Perm], num_vars: usize) -> Vec<Perm>
The closure of a permutation group under composition (BFS), for small groups. Elements keyed by their image vector so the group is deduplicated.