fix the JDK bug by setting java.util.Arrays.useLegacyMergeSort