MAINT: add and partially test a function to compute log likelihood for a Markov chain history