Add the standard code of tarjan.