modular API, max_depth and min_node_size added for CART

- modular API added
- max_depth and min_node_size stopping criteria added
I guess we just need this once.