finished DistArray.__getitem__