Calculating fitness in recombination and mutation