permute for best anagrams