updated the filter FIR filter to accept lists of different size as
coefficients