update merge sort