Introduce tuple to store array dimension and shape