Field-Programmable Custom Computing Machines For Dft/Fft And Dct/Dst Algorithms