stochastic gradient boosting added, feature added for automagically choosing problem type in CART

- Stochastic gradient boosting added
- feature added automatically choosing problem type in CART
Same here as in the unit test we reviewed recently. If you use hard coded values here, then let's use them in `get_sinusoid_samples` as well.