From a list of strings, group together words that are anagrams of each other.
Implement group_anagrams(strings), preserving the order in which groups are first encountered and the original order of strings within each group. Anagrams are case-sensitive, and the output must be a list of lists.
def group_anagrams(strings):