Statistical Mechanics: Algorithms and Computations