McMaster Programming Contest 2014 code