Mcm chapter5

Chapter 5 questions and code.
Yeah, this is much better. TBH, I rushed this one a bit as I spent far too long getting dragged off on a tangent looking up sorting algorithms for the other question