modifications on multidim minimization methods for pull request