Solutions for the Google Code Jam