Hilbert N-Dimensional Distances