Khrulev, C. PISM's connected component labeling implementation [Computer software]. https://github.com/pism/label-components/