created a functionality in libdai to compute marginal likelihoods