Topological sort finished

DAG input added