add cut_dim member to tree nodes