compressed ruby factorial