Implementation of the Metropolis Monte Carlo algorithm in a few different languages