My solutions to google code jam