Rejection Sampling to approximate Bayes Nets