Inverts matrix representation

Inverts the columns and rows so that each row is a term, and each
column is a document.