Making max_depth available from kdtrees.