[Spark-3525] Adding gradient boosting

private