Initial commit
Fixed topological sort (it looped forever)