scc_analysis: memory measurement fix, refactorization, ...