Calculate the cumulative product for all Vec elements.
The size must be set by the user. The function will store all powers of Value:
Values[Index + i] := IntPower(Value, i + 1)
at the corresponding array Index.
CumProduct Method