combine_copy and combine_copy_n from EoP, needed to implement other algorithms, sort included