fft: start at 0 for loop indices

The algorithm the code was based on was taken from FORTRAN which
used [1..n] as the array indices. When ported, the 1-based offset
was kept, resulting in `a[i-1]` used everywhere.

This makes the loops [0..n], replacing `a[i-1]` with `a[i]`.