Topological Sort

Version 1 in progress