Working factorial for big numbers