Add tsort

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>

----

I add rudimentary tsort implementation.
It is tested in my testing project https://github.com/akiradeveloper/rust-tsort and all tests passed.