Second pass at performance enhancements

       If we transpose the term-document matrix we can iterate through
       it faster