memory leak-free quad tree

missing the find nearest neighbor functions