in reply to Anagram Solver

I suggest following the approach I took in Find anagrams of mapping words to a canonical form, rather than mapping words to every possible permutation.