Add initial implementation of trie