Gibbs sampling

@lileicc 
Open Universe Gibbs Sampling. Implemented using the algorithm in Nimar's paper.
It is not written by me.