Algorithms coursework