Individuals with the same haplotype will be in the same group and individuals with different haplotypes will be in different groups.
split_by_haplotypes(population, pids)
Population obtained from simulation
Vector of individual pids
List of integer vector, element i is an IntegerVector
with all pids from pids
with the same haplotype