Implementing the insertion sort algorithm.
Implementing the selection sort algorithm.