Exercises for simple sorting algorithms