Metropolis-Hastings simple algorithm