Generates an array of all possible models.
The number of terms per model.
The list of all feasible models.