Add topo sort.
Add templates and solutions for traversals and topological sorting.