An example program of how to implement a Trie class.