calculation of recombination frequency