This function calculates possible and necessary assignments.
Problem for which assignments will be calculated.
Whether necessary or possible assignments.
n x p logical matrix, where each row represents one
of n alternatives and each column represents one of p classes.
[i, h] is
for necessary assignments: alternative
a_i is always assigned to
for possible assignments: alternative
a_i can be assigned
1 2 3 4 5 6