symmetrize the k-nn distance matrix before running floyd-warshall