Array In Sorting Algorithms In Python