KdTree calculator and precision