modular API, max_depth and min_node_size added for CART