Add initial bayes.cpp