template<class T>
void InsertSort(T a[],int n)
{
T temp;
for(int i=1;i<n;i++)
{
for(int j=i;j>0&&a[j]<a[j-1];j--)
{
temp=a[j-1];
a[j-1]=a[j];
a[j]=temp;
}
}
}
void InsertSort(T a[],int n)
{
T temp;
for(int i=1;i<n;i++)
{
for(int j=i;j>0&&a[j]<a[j-1];j--)
{
temp=a[j-1];
a[j-1]=a[j];
a[j]=temp;
}
}
}