Transfer the parameters from R to tree

These commits are necessary to transfer parameters from R to tree.cpp
where the feature subsetting is done.