Anagram compression