simple FIR filter C++ implementation by Mike Perkins