Solutions to some Google Code Jam problems