Add function to convert integer to HexString