add heuristic for finding corners