Get function of DistanceArray