FEATURE: KdTree Had been implemented.
INTERNAL: minor improvements.