modified fft.js, supports TypedArray