[Spark-3525] Adding gradient boosting

This is not feature dimension, rather, input.count() is the number of LabeledPoint in your RDD. if you would like to compute feature dimension, please use
input.take(1).features.length