Implement normalized linear regression.