Added destructive merge function for lists.