L-RCM: a method to detect connected components in undirected graphs by using the Laplacian matrix and the RCM algorithm