Almost working version of fft.c, amended test.py: fft.c is a few array indices out of sync