Topological Sort Using Decrease Image