The algorithm applies the criteria for a-priori detection of zero-reductions already when the pair set is created and cancels all unnecessary pairs immediately. This keeps the pair set in each stage as small as possible. The pair set is totally ordered by is_labeled_pa_greater. This refinement of the ordering for pairs is required for correct application of the criteria in this version of the algorithm.