put templates into insertion sort. Exercises finished