Bayes2d core

Bayes2d core