modular API, max_depth and min_node_size added for CART

- modular API added
- max_depth and min_node_size stopping criteria added