function calculateAllDistances(points) {
    const numPoints = points.length;
    const result = makeMatrix(numPoints, numPoints);
    for (let i = 0; i < numPoints; i++) {
        for (let j = 0; j < i; j++) {
            result[i][j] = euclideanDistance(points[i], points[j]);
            result[j][i] = result[i][j];
        }
    }
    return result;
}
Create a lookup table of all inter-point distances.

@private
@param {Array<Array<number>>} points N-dimensional coordinates of points.
@return {Array<Array<number>>} A symmetric square array of inter-point distances
(zero on the diagonal).