Faster stochastic histogram merging. Constants are such that brute force is sometimes faster for some data (mostly big images it seems). Change-Id: I90aef536408683535e3b09ddfa2e77a9834038f6