digits: make it work for BigInts (by making ndigits0z work for them)

Also, add test for Project Euler problem #16.