separate the funciton about string
merge xtoa into num_to_string
add %x into sprintf
Finally merge the my_printf and sprintf