Initialize an ndarray with zeros