merge sort to unsorted array