Update SCCDynamic algorithm expand recursive to for loop

* Expand recursive to for loop in SCCDynamic
* Solve stack overflow problems.