C++ code for Gibbs Sampling over a Bayes Network