[Metalab] c++ port of svgnest