add digits! function

Added a digits! function, with an optimization for the arguably common case of base = 2.
It's not strictly necessary, but it's the convention of most mutating functions in Base that they return the array they mutate.