VL_KDTREE_MEAN/MEDIAN fix