MAINT: integrate the trust-region optimization algorithms into the _minimize.py framework