sbn: Gibbs sampling of the states