Genetic Algorithm made (not exactly the same as TomMitchell's algorithm).