The classic factorial for big numbers

... which looks a lot better in Scala than in Java.