Sorting Algorithms implemented in Python