Update joint_bayes.cpp