adding mex wrapper for treeapprox_greedy