Implementation of a trie for words.