contingency_to_membership_vectors: Computes possible membership vectors from contingency table
Description
Given a contingency table, obtains a possible pair of corresponding labelings.
That is, element M[i,j] is the number of elements that belong to community i
in the first labeling and j in the second.