Added a basic marginal likelihood calculation