Initial commit of a topological sorter.