Implementation of Laplaces Demon for Bayesian Inference