Add new object ml.minmax with support for minima as well as maxima