A Geometric Approach to the Algorithmic Tangent Stiffness