More concise Anagrams.cpp