Added O(n^2) DFT algorithm