graph algo's moved from sort module to graph module
prepared for refactor
refactor of graph. may impl not adj list graph, but matrix.
hide VertexPool
fixed infinite loop risk by checking if graph is connected via BFS