New heuristic algorithm