Added implementation of recursive connected components from Shapiro 3.4