converted most of FFT and other methods to objective c.