implemented anagram_groups