[SPARK-3382] GradientDescent convergence tolerance

GrandientDescent can receive convergence tolerance value. Default value is 0.0.
When loss value becomes less than the tolerance which is set by user, iteration is terminated.
Shall we use a while loop with a boolean flag? `breakable` creates a closure, which is not used in the Spark code base.