fix FFT for array that is not a power of 2