Added MinMax with pruning base algorithm.