Arrumando o topological sort