ssa minor model optimization
ssa fast version using Rcpp
ssa fast version using Rcpp