implemented array padding method and played with fftw