Connected Component Labeling StackOverflow.