Add AM demodulator to C++ code, and make the filter frequency and length parameters.