Lines 7-8 is the critical part: it gives a "label" to each hypothesis, based on whether it is in the Pareto Frontier.
first we call FindParetoFrontier (Algorithm 1), which returns a set of pareto hypotheses; pareto-optimal hypotheses will get label 1 while non-optimal hypotheses will get label 0.