Added BCD encoder / decoder