Implemented FFT_filtering function