working ffts, fix offset issue with linear indexing on multi dimensional operations