make hex_digit_to_int short and save one variable in sdsjoin

I think  `hex_digit_to_int` will be faster with 3 if statements and simple math, and saving one variable in `sdsjoin` may improve performance.  

Correct me if I am wrong.