Add a class for cooccur matrix.