Insertion sort and function pointer to sorting algorithms