Sorting algorithms and their implementations from computer science II assignments