calculate_average_ld function

Calculates the ld between two alleles