scala anagrams