Update term_document_matrix.rb