Bayes algorithm implementation