basic mcmc sampler implemented in Julia