Update bayes.m