implement trailing zeros in factorial