1. add terminate condition for powell method.

2. modify the terminate condition for GoldenRationSearchSolver() in CBrentOptimizer method.