Vectorized cumsum_limited
Added cli args