new allele reduction algorithm