 	int dist;
 	int is_duplicate;
 
-	computeDist(m, n, V, D);
-	__syncthreads();
 	// find the k nearest neighbors of the point with index = blockIdx.x
 	i = blockIdx.x;
 	// let the first thread select the k-min distance

		// record event
		cudaEventRecord(start);
		// launch knn() kernel on GPU
		knn<<<m, blk, m*n*sizeof(int)>>>(m, n, k, d_V, d_out, D);
		// record event and synchronize
		cudaEventRecord(stop);
		cudaEventSynchronize(stop);

		cudaMemcpy(d_V, V, m*n*sizeof(int), cudaMemcpyHostToDevice);

		dim3 blk(m, n);
		dim3 grid(m, m);
		// compute the execution time
		cudaEvent_t start, stop;
		// create event
