insertion sort testing and tweaks