add utility methods to leastsquares struct