Demonstration of Metropolis-Hastings Algorithm