make_header_entries function

Convert a Matrix of Headers to Table Entries, with Merging of Runs