Restore "src" directory
Clean up topological sorting design