Google CodeJam 2013 Solutions