template void insertionsort (C& a) { for (int i=1; i0 && a[j-1]>a[j]) { std::swap(a[j], a[j-1]); j=j-1; } } }