merge sort solution accepted.