Add Bayesian curve fitting

Doesn't work