Arrays.sort Method Time Complexity