Stores (word,frequency) pairs in a Trie.