Implemented a few sorts, document and understand them well.