Added code for convolution matrix