Add preliminary CART tree code