Core library for Manifold frontends and backends