merge two array in c++ sortly