Adding the insertion sort algorithm.