fully functioning ZNN3 with tests between fft vs direct