princeton implementation of complex and fft