[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.
MLUtils.appendBias appends (to the end), so the extra 1.0 should probably go at the end for consistency.