Update max_depth in DepthFirstSplitter + Release splitter in BestFirstSplitter