toTriangular: Convert a vector of genotype counts to triangular format
Description
Function toTriangular converts a named vector of genotype counts
into a triangular matrix format, with homozygotes on the diagonal and
heterozygotes below the diagonal.