Recognition of occluded objects with heuristic search