Simple topological sorting for .net