insertionsort now has the same function signature as stdlib stuff, though I am sure the code I wrote will make real C programmers weep. There must be a better way and as soon as I read the libc source I am sure I will find out what it is :)