compare_groups function

Compare groups of samples