uses a trie to autocomplete quickly from a large dictionary.