Anagrams partial implementation