Gibbs sampling in Bayesian networks (research note)