move initialization of max_tree_depth_ out of constructor