first version of hexdump (slow)