Split the sorting algorithms into separate files.