mergeSort

fun <T : Comparable<T>> List<T>.mergeSort(): List<T>