knn search in parallel for ground truth (MATLAB)