Generate Recursive Factorials in Ruby