Leetcode Strongly Connected Components Algorithm