Add connected component