Ruby Implementation of Factorial, tested with rspec