revised algebraic approach to calculate convolution