Updated constructor of ArrayList2D