insert sort algorithm and add note