add ndim property for distribute array

in sklearn, this attribute has been used.