Refactor: Replace malloc MPCroots with std::vector