Changed structure of CBayesianNode to take function instead of distribution, and changed tests for it
Merged