1. - Fixed new KDTree memory allocation calls
2. - Re-added DeleteDeadParticle function calls in tree