TriGauss Fitting

Added TriGauss fit function and corrected some things that should speed
up 2D thermal fits.

DSB