implemented Anagrams.wordAnagrams