implemented getAnagrams.  renamed getAnagrams to getAnagramTree