Remove deprecated interface of DistanceArray