Variational integrators library