Hex digits to binary digits