insert sort for list operation prac