max hornung was an accountant , a mathematical genius with an encyclopedic knowledge of fiscal matters , an instinct for the chicanery of man , and a patience that would have made job weep with envy .