add the mcmc algorithm