Factorial TCO (ruby)