cornersHeuristic works