Basic MCMC code for posterior inference (no singles case)