working on convolution. triyng to make it work with 2D arrays. giving some trouble