insert sort bug