Implementing sorting algorithms as per the University of Turku Tietorakenteet ja algoritmit -course.