Add initial Trie implementation