A first try at Genetic Algorithm