getHeuristic