ruby insertion sort