Converts a base 10 number to base 16 number. Because I couldn't get R's as.hexmode() to work for big integers.
Useful links