move trie to own package and update dict TODO