insert sort ,half