Computing ordinary least squares regression