add dense matrix type