haplotypes Implementing haplotype likelihood calculations as per https://www.overleaf.com/read/ykgqgqtbdsyr