make HillClimbing more efficient