Adding my solutions from 2013 Google Code Jam