Added new heuristic algorithm.