Some solutions for Google Code Jam