multivariate linear regression implemented