MergeSort with a random test casew