add merge sort of array