todo: test deletenode
fourier transform