Prune Sampling: a MCMC inference technique for discrete and deterministic Bayesian networks