uva 200 topological sort