mod insertionsort

from silvia