finish merge sort array