Group anagrams together on a collection of words.