code that uses the trie stuff to lookup/store anagrams