Anagram factorizing