use resig's trie creation code