Basically in merge sort we use slice function so the above code is similat to quick sort which helps merge sort to use without slicing