Add hex and bin printing functions from Zach Beane.