Compact hydrogen furnace