Sorting algorithms from a basic computer science book