Vectorized the first loop of non-dominated sorting