MinAlgorithmBase: another optimization.