Added termdocumentmatrix method.