Signal Resampler for C++