Speedup adaptive binning. Improve stopping criterion for weighted events. Fix 1D normalization.