Added toString, hashCode, and Equals methods to the Trie