add level switch merge sort