Euclidian distances of items in memory