Serial Monte Carlo algorithm

Serial version of an MPI Monte Carlo algorithm I did.