Automated tetraploid genotype calling by hierarchical clustering