Template and Incertion Sort - C++