Implement convolution operation.