Bcd_lib.c has the functions necessary for the bcd function library.
Modified bcd_divide_v2 to avoid side effects when input and output
variables point to the same location.