Initial stab at HMM for calc_genoprob