added a new factorial implementation with overflow safeguard
a bit of cleaning in myfactorial-safe