basic trie tree implement go a step further