https://perso-laris.univ-angers.fr/~lhommeau/minmaxgdcalc.html