$N$-distance space