cleanup Greedy algorithm and Genetic