Fix #11.

  - Implemented Tarjan's algorithm for finding cyclical dependencies.