Created freq matrix for all words