implement finding strong components