Educational implementation of sorting algorithms