logger
tsort with bugs
tsort (fixed)