add missing gdoslin.
Remove CurveMatrix, replace it with Eigen3.