simplified tarjan, removed unnecessary slots from TarjanNode class