updating the kd tree leaf size in the element tree to improve performance