need to add a template to insertion sort