Updated to use version 3 of the C Trie solution.