Calculating Allele and Genotype Frequencies