Finished untested and likely buggy autocompletion for Trie