A trie class with supporting classes