Use more efficient div_rem method in Digits struct.
Optimized problem 29.
Remove ~[T] in problem 18.