private void uniq() {
		if (values.length == 0) {
			return;
		}

		final int[] v = new int[values.length];
		final Label[] t = new Label[values.length];

		v[0] = values[0];
		t[0] = targets[0];

		int j = 1;

		for (int i = 1; i < values.length; i++) {
			if (v[j - 1] != values[i]) {
				v[j] = values[i];
				t[j] = targets[i];
				j++;
			}
		}

		values = new int[j];
		System.arraycopy(v, 0, values, 0, j);

		targets = new Label[j];
		System.arraycopy(t, 0, targets, 0, j);
	}