Topological Sort Using Decrease Size Of Images