Add heuristic from Cormen