added matLab function GaussianFit