Implemented second version of Strongly Connected Component