Monte Carlo and Genetic algorithm

Simple Monte Carlo and genetic algorithm example for a small system with
four spins