Added combinatorial generator classes.

Refactored and license appended.