Anagram hierarchizing