added BFS for connected components algorithm on undirected graph
created test for undirected connected components
minor bugfix: *node type was shadowed by node parameter name