impl wordAnagrams