computing Minima