Normal Equations (solution for theta)