add cumulative in mznlib