Cubic exact solutions for the estimation of pairwise haplotype frequencies: implications for linkage disequilibrium analyses and