C
construction of trie from a dictionary