Successfully implemented topological sort algorithm. I think.