add g2o and ceres