updated trie single source file