Create Topological Sorting