Ruby Standard Library - tsort