Refactor base method of OptimizationProblem
Added Whitley function + test