Adding anagrams problem