Benchmark for factorial calculation in Ruby and Haskel