Java Arrays.sort Time Complexity