Option to set the max. depth of the kd-tree automatically.