Start implementing connected-components labeling algorithm

Change-Id: I2438a9b6a8dfcb3eb987660d400f694f107cc044