Fixed bug in Tarjan's algorithm

Minor update