Add minimalSpeed option to GradientDescent