Adapt SCCDynamic for sparse input 

*Adapt SCCDynamic for sparse input