Some code I've written trying to solve Google Code Jam's Problems