grouping-methods function

Groups haplotypes according to the grouping variable (populations, species, etc.)