Implemented wordAnagrams