Arrays Sort Time Complexity In Java