Added size() method for KdTree