My answers to C++ coursework from Imperial MSc I did in 2011/12