private static int updateStarts(int base, int[] values, int[] starts) {
		int start = base;
		for (int i = 0; i < values.length; i++) {
			starts[i] = start;
			start += values[i];
		}
		return start - base;
	}