Add tarjan algorithm to dfs applicatio snippet

Also removed unnecessary cross edge variable.