[Fact] Improve the statistics module.
remove min2, max2, ... add proper cumsum and cumprod.