[enhancement] added a lazy version of the minimax code: consume much much less memory (3MB instead of 800MB) but is probably 10 times slower.