 	int *V, *out;				//host copies
 	int *d_V, *d_out;			//device copies
 	
-//	int *D;						//will be replaced with shared memory
-	int *dim_D;
+	int *D;						
+//	int *dim_D;					//be replaced with shared memory
 
 	FILE *fp;
 	if(argc != 2)

		cudaFree(d_V);
		cudaFree(d_out);

//		cudaFree(D);
		cudaFree(dim_D);

		free(V);
		free(out);

	return R[0];
}

__global__ void knn(int m, int n, int k, int *V, int *out, int *D)
{
	int i,j;
	int temp;
