Java Arraylist Get Time Complexity Of Sorting Algorithms In Python