My code for google's code jam 2013 https://code.google.com/codejam/