refactoring utilities
Optimizer (Powell algorithm)