gibbs sampler initialization function updated