ENH: compiled but not tested function for rao-blackwellization of an mcmc