Initial import of Gibbs sampling code.