Various sorting algorithms written in python