My answers in ruby to google code jam