I’m having a hard time linking your OP data to your config (especially as your code isn’t formatted, (please figure out how to do that for the future).
Personally I’d probably be looking at the mulcmu approach for this unless you are already competent in cpp.