added #stats method for Array class