solved + merge sort