DFT using correlation and inverse DFT algorithms