Computing Bayes factors