Stores anagrams in map & prints it