Added more features to genetic algorithm