fixed CUDA fft problem and added Matlab helpers