Compute the least square fitting for a function of two variables and also the coefficient of determinatino (R**2).