Added hexadecimal formatting and fixed FNV-1 24 bit

Added methods for formatting numbers in hexadecimal. Fixed a mistake in
the FNV-1 24 bit algorithm implementation.