Use composition instead of inheritance for cow_ptr