Decision trees, bagging and random forest