improves speed of convolution; 4 loops are indeed faster than matrix indexing...