Gradient boosted tree implementation.