faster array access for fourier2d
faster array access for wavefunction.js
fourier 2d merge