add ndim property for distribute array