Adding the functions for hexToDec() and decToHex()