make merge sort stable