Start of Run-Based Two-Scan Labeling algorithm implementation