insertion sort
correct insertion and selection