Fast Fourier transform fft and discrete cosine transform dct