Basic genetic algorithm source code, very useful for beginners