in method maxCumulativeDifference(..): added protection against many events having the same value in signal and background (which before could have lead to an artificially high difference in the distributions)