 	{
 		for(j=0; j<k; j++)
 		{
-				printf("%d", out[i*k+j]);
-				if(j == k-1)
-				{
-						printf("\n");
-				}
-				else
-				{
-						printf(" ");
-				}
+			printf("%d", out[i*k+j]);
+			if(j == k-1)
+			{
+				printf("\n");
+			}
+			else
+			{
+				printf(" ");
+			}
 		}
 	} 
 } 

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

		knn<<<m, m, m*m*sizeof(int)>>>(m, n, k, d_V, d_out);

		cudaMemcpy(out, d_out, m*k*sizeof(int), cudaMemcpyDeviceToHost);


	
				if(!is_duplicate)
				{
					if(i < j)
					{
						dist = D[i*m+j];
					}
					else
					{
						dist = D[j*m+i];
					}
					if(dist < temp)
					{
						temp = dist;
						out[i*k+count] = j;
					}
				}
