Cleanup: ptrdiff_t and partially split adjustHist.

Replaced integers with ptrdiff_t (where appropriate).
Partially refactored ParallelUnionFind2DStripes::adjustFinalHistogram().