private static int[] init(final int[] indexes) {
		for (int i = 0; i < indexes.length; ++i) indexes[i] = i;
		return indexes;
	}
Creates a new {@code NSGA2Selector} with the functions needed for
handling the multi-objective result type {@code C}. For the {@link Vec}
classes, a selector is created like in the following example:
{@snippet lang="java":
new NSGA2Selector<>(
    Vec<T>::dominance,
    Vec<T>::compare,
    Vec<T>::distance,
    Vec<T>::length
);
}

@see #ofVec()

@param dominance the pareto dominance comparator
@param comparator the vector element comparator
@param distance the vector element distance
@param dimension the dimensionality of vector type {@code C}
jenetics.ext/src/main/java/io/jenetics/ext/moea/NSGA2Selector.java