insertion sort improvements