Add is_bin_ext and uint_to_ip function