dictionaryByOccurrences and wordAnagrams implemented