Found bug (inverse fft doesn't work). Still need to fix.