Added stuff for insertionsort