Appendix 6: Fast Fourier Algorithm