Practice of sorting algorithms