function module.Accumulate(P)local l=0 for L,y in pairs(P)do l=l+P[L]P[L]=l end return P end

function module.Accumulate(t)
	local s = 0;
	for i, v in pairs(t) do
		s = s + t[i];
		t[i] = s;
	end
	return t;
end
