C++ version of Yet Another Markov Chain Monte Carlo sampler