Added memory allocation and FFTW initialization.

The arrays seem to be allocated properly for in place DFTs. Also, the plans for
forward and reverse DFTs have been created in FFTW.