Fixed tree clearing in KTCreateKDTree
Merge branch 'fix-create-kdtree' into develop