created a codepad version of trie