rename maxGenerations to noImprovementLimit
fix HC method