2D Convolution Operation - Coding problem | OneNoughtOne