A simple implementation of insertionsort.