using the right apis in recursion for merge sort without copy

using the right apis in recursion for merge sort without copy