add simple support for hex strings

Tested on darcy.

optimized fractal algorithm took 34.31 seconds