Add a capacity field to arrays