convolve use dft when template size isn't small