Made constructor for ArrayList2D