Adding fft implementation from http://alikhuram.wordpress.com/2013/05/15/computing-the-fast-fourier-transform-algorithm-in-c/