performance hacks for sorted anagrams, to revisit