Condensed header table. 100 LOC again!
Switch width iteration to be row-major for simplicity.
Disallow empty headers.