Hypercube FFT and Fourier pseudospectral method