Implementations of various sorting algorithms in python