C++ Solutions for Canadian Computing Competition