First implementation of Genetic Algorithm (Not tested yet)