Fast anagram solver without sorting