Algorithms for computational genetic epidemiology