Insertion Sort Python Time Complexity