labelReduction function

Combines labels which overlap into single continuous regions