code for solving the code jam 2014 questions (probably badly)