Added test harness for Topsort code