add trie for words