trie implementation in dart