Java Merge Sort and Quick Sort