Use metropolis algorithm for low temperatures.