Object oriented genetic algorithm code