Updated FFT example for memory cleanup