improved diagonal heuristic pattern