Implements a topological sort algorithm

WWW: https://gitlab.com/ericvsmith/toposort
