My code and notes from Google Code Jam 2014