Update the code using https://groups.google.com/forum/#!topic/ceres-solver/WX4TZXlG87g, SuiteSparse 4.4.1 and metis 5.1.0