ceres-solver: Add head

Closes #309