PHP Solutions for Google Code Jam