Week 5 - KdTree implementation