working, small bug in insertion sort