Implement for TopologicalSort
Language: C/C++
IDE: VS2013