calculate zorro heuristic