Selection at a locus with two alleles