Adding MCMC functionality.

Starting to work on adding MCMC functionality.

Not ready to merge yet.