Add inefficient but working connected component labeling