add binary_to_hex method