build_table_header function

Build table header, a utility function to help with construct structured header for table layout