Moved to FFT from DFT

Also incorporated Huber regularization using median cost