Create an interface for Trie classes