Added OptimizedMinMaxSearch