add aglorithm getting connected components by DFS
add aglorithm telling wether a graph is singly connected
replace implemention of topLogicalSort