Implement addAll and addAll with index method for dynamic list.