added simpler trie.c