implemented brute force convolve for small kernel sizes