func_MCMC function

Function to run MCMC sampling