Toposort and critical path example

Closes #15.