move Digits and Algorithm to the base OTP package