grain-simulate function

Simulate from Bayesian network