amergesort with brute-force base case