Finding Strongly Connected Components Algorithm