improved trie by changing to a linked tree structure. some issues with not handling prefixes properly.
improved trie by changing to a linked tree structure. some issues with not handling prefixes properly.