Added TopoSort; fixed Acyclic.