bubble sort and insertion sort