An algorithm to improve the computational efficiency of genetic linkage analysis