calc_genetic_sim & gprob_to_aprob: allow use of multiple cores