On the many-to-many carpooling problem in the context of multi-modal trip planning