Compute Stirling numbers of the second kind
Generate and return all permutations of a multiset
Generate all, or a subset, of the integer partitions of an integer n.
Return the next permutation of the multiset