begin to implement a simple trie