Convolution algorithm implementation for signal processing