Use linear regression to determine the values. xT * x is coming out to
be singular. Need to debug this.