2 dimensional linear regression