added code in visualizer to test the fft