Algorithm For Hill Climbing Heuristic