Topological Sort C