modernize anagram implementation
leap