Fast fourier transform

Adds an implementation of http://rosettacode.org/wiki/Fast_Fourier_transform.