Implementation of basic sorting algorithms. (DSA Coursework 1)