Added an optimization to filter out unnecessary values while computing fft itself. Now, the call to cuda_filter can be removed