insert sort is working