added trie implementation of dictionary interface