Simple bundle adjuster from ceres-solver.