calculate multifactorial recursively in ruby