Cpp Program To Implement Bayesian