add Gibbs Sampling Function