Convert HashSet to use the new trie implementation