adds the dense matrix class (mat)
adds the sparse matrix class (sparse_mat)