added gibbs inference
added gibbs inference