Notes on Statistical Mechanics : Computations and Algorithms