fixed leaks in MRC genetic algorithm