Optimization algorithms for functional deimmunization of therapeutic proteins