synchronized void newSumLog(int n) {
		if (n >= sumLog.length) {
			// Copy and resize
			double sumLogNew[] = Arrays.copyOf(sumLog, n + 1);

			// Calc new values
			for (int i = sumLog.length; i < sumLogNew.length; i++)
				sumLogNew[i] = sumLogNew[i - 1] + Math.log(i);

			sumLog = sumLogNew;
		}
	}