tsort object needs to be instance based
Merge pull request #2 from Jakobo/master

tsort object needs to be instance based