Improved performance of Integer.undigits/2

Simplified the implementation. No need to reverse anything.