algo to find connected components; not ready;