Hex string to long int method.

Exercise 2-3.

Includes a horrible method to convert a hex char to its int value.