Implemented hex2bin