Markov Chain Monte Carlo and the Metropolis Alogorithm