Implemented pre_inst argument for BayesianNetwork.sample() method
Implemented Event class