clustering to count haplotypes as a first pass at ploidy