Improved Detail:
- remove input parameter named res of both methods of nonmonotonic_search which exists in v2.8.1, and reduce the computed times of res.subs operation, replace res0 with a negative value of variable d (present as dk in barzilar_borwein method).