(*) Added tracking support to TopologicalSort

(*) Added testing support for this