Sample code for Merge sort Algorithm using dynamic memory allocation in C++