Implemented a couple of sorting algorithms in Python.