made conversion to sparse matrix in amcat.dtm.create a separate function